home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / python2.4 / encodings / utf_8.pyo (.txt) < prev    next >
Python Compiled Bytecode  |  2005-10-18  |  1KB  |  30 lines

  1. # Source Generated with Decompyle++
  2. # File: in.pyo (Python 2.4)
  3.  
  4. """ Python 'utf-8' Codec
  5.  
  6.  
  7. Written by Marc-Andre Lemburg (mal@lemburg.com).
  8.  
  9. (c) Copyright CNRI, All Rights Reserved. NO WARRANTY.
  10.  
  11. """
  12. import codecs
  13. encode = codecs.utf_8_encode
  14.  
  15. def decode(input, errors = 'strict'):
  16.     return codecs.utf_8_decode(input, errors, True)
  17.  
  18.  
  19. class StreamWriter(codecs.StreamWriter):
  20.     encode = codecs.utf_8_encode
  21.  
  22.  
  23. class StreamReader(codecs.StreamReader):
  24.     decode = codecs.utf_8_decode
  25.  
  26.  
  27. def getregentry():
  28.     return (encode, decode, StreamReader, StreamWriter)
  29.  
  30.